$(document).ready(function(){
    $("input").focus(function(){
        $(this).animate({"opacity" : "1"} ,"slow");
    }).focusout(function(){
            $(this).animate({"opacity" : "0.5"}, "fast");
        });
    $("input[type='submit']").hover(function(){
        $(this).animate({"opacity" : "0.7"}, "fast");
    },function(){
        $(this).animate({"opacity" : "1"}, "fast");
    });
});

function my_callback(data){
    alert(data.message);
}